      <% if logged_in? and has_not_rated_media?(@media) %>
        <span style="font-size: 11px; font-weight: bold;">Rating: <%= @media.rating %></span><br />
        <span style="font: 14px arial;"><%= link_to_remote '&#43;', {:url => {:controller => 'media', :action => 'change_rating', :id => @media.id, :direction => "up" }, :update => "rating_"+@media.id.to_s } %></span> /
        <span style="font: 14px arial;"><%= link_to_remote '&ndash;', {:url => {:controller => 'media', :action => 'change_rating', :id => @media.id, :direction => "down" }, :update => "rating_"+@media.id.to_s } %></span>
      <% else %>
        <div style=""><span style="font-size: 11px; font-weight: bold;">Rating: <%= @media.rating %></span><br>
        <% if !logged_in? %>
          <span style="font-size: 11px;">Please <%= link_to 'login', :controller => '/account', :action => 'login' %> to rate<br>this media.</span>
        <% end %>
        </div>
      <% end %>